package us.hootpic.client;

import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.PopupPanel;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.ui.Widget;

public final class HootPic2  extends PopupPanel{
	 private Label lblmsg = new Label("Working hard...");
	 private Button sampleBtn1 = new Button("close");
	 private VerticalPanel sampleVpanel = new VerticalPanel();
	 
	public HootPic2(String message) {
		super(true);
		setAnimationEnabled(true);
		
		this.lblmsg.setText(message);
		
		sampleVpanel.add(lblmsg);
		sampleVpanel.add(sampleBtn1);
		
		setWidget(sampleVpanel);
	}
	
	  @Override
	  public Widget asWidget() {
	    return this;
	  }

	  public Button getButton()
	  {
		  return this.sampleBtn1;
	  }

}
